<#assign module="workcar"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/datetimepicker.css">
<style>
   label span{
        color: red;
    }
</style>
</@override>

<@override name="body">
<div class="row">
  <div class="col-xs-10">
  </div>
  <div class="col-xs-12">
  	<span style="font-size: large;color: red;padding-left: 8px;">此收费标准仅用于监管平台接口信息上传</span>
  	<button class="pull-right btn btn-primary" data-toggle="modal" data-target="#myModal"><i class="icon-plus"></i>&nbsp;添加收费标准</button>
      <!-- 模态框（Modal） -->
      <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
          <div class="modal-dialog" style="height:550px;width:850px;">
              <div class="modal-content">
                  <div class="modal-header">
                      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                          &times;
                      </button>
                      <h3 class="modal-title" id="myModalLabel">
                          添加收费标准
                      </h3>
                  </div>
                  <div class="modal-body" style="height:450px;width:800px;">
                      <ul class="nav nav-tabs">
                      	  <li class="active"><a href="#Freight" data-toggle="tab">运价信息</a></li>
                          <li><a href="#basicInfo" data-toggle="tab">基本信息</a></li>
                          <li><a href="#insuranceTab" data-toggle="tab">运营高峰期</a></li>
                          <li><a href="#detailedTab" data-toggle="tab">其他信息</a></li>
                      </ul>
                      <form class="form-horizontal" role="form" id="Yjxxfrom">
                          <div class="tab-content">
                          <div class="tab-pane in " id="basicInfo">
                              <div class="panel margin-top">
                                  <div class="panel-body" style="margin-left:0px">
                          <fieldset>
                              <legend>基本数据</legend>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="startFare"><span>*</span>起步价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="startFare"  name="startFare"  type="number" placeholder="请输入正确起步价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                                  <label class="col-sm-2 control-label" for="startMinute"><span>*</span>起步时长:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="startMinute"  name="startMinute"  type="number" placeholder="请设置起步时长"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                              </div>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="startMile"><span>*</span>起步里程:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="startMile"  name="startMile"  type="number" placeholder="请设置起步里程"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                                  <label class="col-sm-2 control-label" for="unitPricePerMile"><span>*</span>计程单价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="unitPricePerMile"  name="unitPricePerMile"  type="number" placeholder="请设置记程单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                              </div>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="unitPricePerMinute"><span>*</span>记时单价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="unitPricePerMinute"  name="unitPricePerMinute"  type="number" placeholder="请设置记时单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                                  <label class="col-sm-2 control-label" for="lowSpeedPricePerMinute"><span>*</span>低速计时单价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="lowSpeedPricePerMinute"  name="lowSpeedPricePerMinute"  type="number" placeholder="请设置低速计时单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                              </div>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="singleUnitPrice"><span>*</span>单程加价单价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="singleUnitPrice"  name="singleUnitPrice"  type="number" placeholder="请设置单程加价单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                                  <label class="col-sm-2 control-label" for="singlePriceStartMile"><span>*</span>单程加价公里:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="singlePriceStartMile"  name="singlePriceStartMile"  type="number" placeholder="请设置单程加价公里"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                              </div>
                          </fieldset>
								  </div>
								  </div>
						  </div>

                          <div class="tab-pane in" id="insuranceTab">
                              <div class="panel margin-top">
                                  <div class="panel-body">
                          <fieldset>
                              <legend>运营高峰期</legend>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="morningPeakTimeOn"><span>*</span>早高峰起时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="morningPeakTimeOn"  name="morningPeakTimeOn" type="text" placeholder="请设置早高峰时间" readonly/>
                                  </div>
                                  <label class="col-sm-2 control-label" for="morningPeakTimeOff"><span>*</span>早高峰止时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="morningPeakTimeOff" name="morningPeakTimeOff"  type="text" placeholder="请设置早高峰时间" readonly/>
                                  </div>
                              </div>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="eveningPeakTimeOn"><span>*</span>晚高峰起时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="eveningPeakTimeOn"  name="eveningPeakTimeOn"  type="text" placeholder="营运晚高峰起时间" readonly/>
                                  </div>
                                  <label class="col-sm-2 control-label" for="eveningPeakTimeOff"><span>*</span>晚高峰止时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="eveningPeakTimeOff" name="eveningPeakTimeOff"   type="text" placeholder="营运晚高峰止时间" readonly/>
                                  </div>
                              </div>
                             
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="otherPeakTimeOn"><span>*</span>其他高峰起时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="otherPeakTimeOn"  name="otherPeakTimeOn" type="text" placeholder="其他高峰起时间" readonly/>
                                  </div>
                                  <label class="col-sm-2 control-label" for="otherPeakTimeOff"><span>*</span>其他高峰止时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="otherPeakTimeOff"  name="otherPeakTimeOff" type="text" placeholder="其他高峰止时间" readonly/>
                                  </div>
                              </div>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="peakUnitPrice"><span>*</span>高峰单程加价单价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="peakUnitPrice"  name="peakUnitPrice"  type="number" placeholder="设置高峰时间单程加价单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]"/>
                                  </div>
                                  <label class="col-sm-2 control-label" for="peakPriceStartMile"><span>*</span>高峰单程加价公里:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="peakPriceStartMile"  name="peakPriceStartMile"  type="number" placeholder="设置高峰时间单程加价公里"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]"/>
                                  </div>
                              </div>
                          </fieldset>
								  </div>
							  </div>
						  </div>


                          <div class="tab-pane in" id="detailedTab">
                              <div class="panel margin-top">
                                  <div class="panel-body">
                          <fieldset>
                              <legend>其他信息</legend>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="nightTimeStart"><span>*</span>夜间起时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="nightTimeStart" name="nightTimeStart" type="text" placeholder="设置夜间起时间" readonly/>
                                  </div>
                                  <label class="col-sm-2 control-label" for="nightTimeEnd"><span>*</span>夜间止时间:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="nightTimeEnd"  name="nightTimeEnd" type="text" placeholder="设置夜间止时间" readonly/>
                                  </div>
                              </div>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="nightPricePerMile"><span>*</span>夜间公里单价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="nightPricePerMile"  name="nightPricePerMile"  type="number" placeholder="添加夜间公里价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                                  <label class="col-sm-2 control-label" for="nightPricePerMinute"><span>*</span>夜间时间单价:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="nightPricePerMinute"  name="nightPricePerMinute"  type="number" placeholder="设置夜间单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                              </div>
                              <div class="form-group">
                                  <label class="col-sm-2 control-label" for="otherPrice"><span>*</span>其他加价金额:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="otherPrice"  name="otherPrice"  type="number" placeholder="其他金额"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                                  <label class="col-sm-2 control-label" for="minPrice"><span>*</span>最低消费:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="minPrice"  name="minPrice"  type="number" placeholder="设置最低消费"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                              </div>
                               <div class="form-group">
                                  <label class="col-sm-2 control-label" for="extraCharge"><span>*</span>附加费:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="extraCharge"  name="extraCharge"  type="number" placeholder="附加费"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                                  <label class="col-sm-2 control-label" for="callCharge"><span>*</span>预约服务费:</label>
                                  <div class="col-sm-4">
                                      <input class="form-control" id="callCharge"  name="callCharge"  type="number" placeholder="预约服务费"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                  </div>
                              </div>
                          </fieldset>
								  </div>
							  </div>
						  </div>
                              <div class="tab-pane in active" id="Freight">
                                  <div class="panel margin-top">
                                      <div class="panel-body">
                                          <fieldset>
                                              <legend>运价信息</legend>
                                              <#--<div class="form-group">-->
                                                  <#--<label class="col-sm-2 control-label" for="licence"><span>*</span>经营许可证:</label>-->
                                                  <#--<div class="col-sm-4">-->
                                                      <#--<input class="form-control" id="licence"  name="licence" type="text" placeholder="汽车经营许可证"/>-->
                                                  <#--</div>-->
                                                  <#--<label class="col-sm-2 control-label" for="adminCode"><span>*</span>行政区划编号:</label>-->
                                                  <#--<div class="col-sm-4">-->
                                                      <#--<input class="form-control" id="adminCode"  name="adminCode" type="test" placeholder="行政区划编号"/>-->
                                                  <#--</div>-->
                                              <#--</div>-->
                                               <div class="form-group">
                                                  <label class="col-sm-2 control-label" for="fareType"><span>*</span>运价类型:</label>
                                                  <div class="col-sm-10">
                                                      <input class="form-control" id="fareType" name="fareType" type="text" />
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label class="col-sm-2 control-label" for="fareValidOn"><span>*</span>运价有效期起:</label>
                                                  <div class="col-sm-4">
                                                      <input class="form-control" id="fareValidOn" name="fareValidOn" type="text"  readonly/>
                                                  </div>
                                                  <label class="col-sm-2 control-label" for="fareValidOff"><span>*</span>运价有效期止:</label>
                                                  <div class="col-sm-4">
                                                      <input class="form-control" id="fareValidOff" name="fareValidOff" type="text"  readonly/>
                                                  </div>
                                              </div>
                                              <div class="form-group">
				                                  <label class="col-sm-2 control-label" for="vehicleType"><span>*</span>车辆类型:</label>
				                                  <div class="col-sm-4">
				                                      <input class="form-control" id="vehicleType" name="vehicleType" type="text" />
				                                  </div>
				                                  <label class="col-sm-2 control-label" for="valid"><span>*</span>是否有效:</label>
				                                  <div class="col-sm-4">
				                                      <select class="form-control" id="valid" name="valid" >
				                                          <option value="0">有效</option>
				                                          <option value="1">无效</option>
				                                      </select>
				                                  </div>
                              				  </div>
                                              <div class="form-group">
                                              <label class="col-sm-2 control-label" for="fareTypeNote"><span>*</span>运价类型说明:</label>
                                              <div class="col-sm-10">
                                                  <textarea class="form-control" id="fareTypeNote" name="fareTypeNote" rows="3"  placeholder="请输入运价类型说明"></textarea>
                                              </div>
                                              </div>
                                          </fieldset>
                                      </div></div>
                              </div>
                      </form>
                  </div>
                  <div class="modal-footer" style="position:absolute; bottom:10px; right:40px;">
                      <button type="button" id="formbutton" class="btn btn-primary">
                          确认
                      </button>
                      <button type="button" class="btn btn-default" data-dismiss="modal">
                          关闭
                      </button>
                  </div>
              </div>
          </div>
      </div>
  </div>
</div>



<#--修改-->
<div class="form-horizontal">
<div class="modal fade" id="myModals" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="height:550px;width:850px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h3 class="modal-title" id="myModalLabel">
                    修改收费标准
                </h3>
            </div>
            <div class="modal-body" style="height:450px;width:800px;">
                <ul class="nav nav-tabs">
                	<li class="active"><a href="#Freights" data-toggle="tab">运价信息</a></li>
                    <li><a href="#basicInfos" data-toggle="tab">基本信息</a></li>
                    <li><a href="#insuranceTabs" data-toggle="tab">运营高峰期</a></li>
                    <li><a href="#detailedTabs" data-toggle="tab">其他信息</a></li>
                    
                </ul>
                <form class="form-horizontal" role="form" id="updateYjxxfrom">
                	<input type='hidden' id="feeId" name="feeId"/>
                    <div class="tab-content">
                        <div class="tab-pane in " id="basicInfos">
                            <div class="panel margin-top">
                                <div class="panel-body" style="margin-left:0px">
                                    <fieldset>
                                        <legend>基本数据</legend>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="startFare2"><span>*</span>起步价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="startFare2"  name="startFare"  type="number" placeholder="请输入正确起步价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="startMinute2"><span>*</span>起步时长:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="startMinute2"  name="startMinute"  type="number" placeholder="请设置起步时长"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="startMile2"><span>*</span>起步里程:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="startMile2"  name="startMile"  type="number" placeholder="请设置起步里程"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="unitPricePerMile2"><span>*</span>计程单价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="unitPricePerMile2"  name="unitPricePerMile"  type="number" placeholder="请设置记程单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="unitPricePerMinute2"><span>*</span>记时单价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="unitPricePerMinute2"  name="unitPricePerMinute"  type="number" placeholder="请设置记时单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="lowSpeedPricePerMinute2"><span>*</span>低速计时单价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="lowSpeedPricePerMinute2"  name="lowSpeedPricePerMinute"  type="number" placeholder="请设置低速计时单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="singleUnitPrice2"><span>*</span>单程加价单价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="singleUnitPrice2"  name="singleUnitPrice"  type="number" placeholder="请设置单程加价单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="singlePriceStartMile2"><span>*</span>单程加价公里:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="singlePriceStartMile2"  name="singlePriceStartMile"  type="number" placeholder="请设置单程加价公里"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane in" id="insuranceTabs">
                            <div class="panel margin-top">
                                <div class="panel-body">
                                    <fieldset>
                                        <legend>运营高峰期</legend>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="morningPeakTimeOn2"><span>*</span>早高峰起时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="morningPeakTimeOn2"  name="morningPeakTimeOn" type="text" placeholder="请设置早高峰时间" readonly/>
                                            </div>
                                            <label class="col-sm-2 control-label" for="morningPeakTimeOff2"><span>*</span>早高峰止时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="morningPeakTimeOff2" name="morningPeakTimeOff"  type="text" placeholder="请设置早高峰时间" readonly/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="eveningPeakTimeOn2"><span>*</span>晚高峰起时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="eveningPeakTimeOn2"  name="eveningPeakTimeOn"  type="text" placeholder="营运晚高峰起时间" readonly/>
                                            </div>
                                            <label class="col-sm-2 control-label" for="eveningPeakTimeOff2"><span>*</span>晚高峰止时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="eveningPeakTimeOff2" name="eveningPeakTimeOff"   type="text" placeholder="营运晚高峰止时间" readonly/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="otherPeakTimeOn2"><span>*</span>其他高峰起时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="otherPeakTimeOn2"  name="otherPeakTimeOn" type="text" placeholder="其他高峰起时间" readonly/>
                                            </div>
                                            <label class="col-sm-2 control-label" for="otherPeakTimeOff2"><span>*</span>其他高峰止时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="otherPeakTimeOff2"  name="otherPeakTimeOff" type="text" placeholder="其他高峰止时间" readonly/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="peakUnitPrice2"><span>*</span>高峰单程加价单价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="peakUnitPrice2"  name="peakUnitPrice"  type="number" placeholder="设置高峰时间单程加价单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="peakPriceStartMile2"><span>*</span>高峰单程加价公里:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="peakPriceStartMile2"  name="peakPriceStartMile"  type="number" placeholder="设置高峰时间单程加价公里"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                            </div>
                        </div>


                        <div class="tab-pane in" id="detailedTabs">
                            <div class="panel margin-top">
                                <div class="panel-body">
                                    <fieldset>
                                        <legend>其他信息</legend>
                                         <div class="form-group">
                                            <label class="col-sm-2 control-label" for="nightTimeStart2"><span>*</span>夜间起时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="nightTimeStart2" name="nightTimeStart" type="text" placeholder="设置夜间起时间" readonly/>
                                            </div>
                                            <label class="col-sm-2 control-label" for="nightTimeEnd2"><span>*</span>夜间止时间:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="nightTimeEnd2"  name="nightTimeEnd" type="text" placeholder="设置夜间止时间" readonly/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="nightPricePerMile2"><span>*</span>夜间公里单价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="nightPricePerMile2"  name="nightPricePerMile"  type="number" placeholder="添加夜间公里价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="nightPricePerMinute2"><span>*</span>夜间时间单价:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="nightPricePerMinute2"  name="nightPricePerMinute"  type="number" placeholder="设置夜间单价"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="otherPrice2"><span>*</span>其他加价金额:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="otherPrice2"  name="otherPrice"  type="number" placeholder="其他金额"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="minPrice2"><span>*</span>最低消费:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="minPrice2"  name="minPrice"  type="number" placeholder="设置最低消费"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                         <div class="form-group">
                                            <label class="col-sm-2 control-label" for="extraCharge2"><span>*</span>附加费:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="extraCharge2"  name="extraCharge"  type="number" placeholder="附加费"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                            <label class="col-sm-2 control-label" for="callCharge2"><span>*</span>预约服务费:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="callCharge2"  name="callCharge"  type="number" placeholder="预约服务费"  onkeyup="this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0]" />
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                            </div>
                        </div>
                        <div class="tab-pane in active" id="Freights">
                            <div class="panel margin-top">
                                <div class="panel-body">
                                    <fieldset>
                                        <legend>运价信息</legend>
                                    <#--<div class="form-group">-->
                                    <#--<label class="col-sm-2 control-label" for="licence"><span>*</span>经营许可证:</label>-->
                                    <#--<div class="col-sm-4">-->
                                    <#--<input class="form-control" id="licence"  name="licence" type="text" placeholder="汽车经营许可证"/>-->
                                    <#--</div>-->
                                    <#--<label class="col-sm-2 control-label" for="adminCode"><span>*</span>行政区划编号:</label>-->
                                    <#--<div class="col-sm-4">-->
                                    <#--<input class="form-control" id="adminCode"  name="adminCode" type="test" placeholder="行政区划编号"/>-->
                                    <#--</div>-->
                                    <#--</div>-->
                                    	<div class="form-group">
                                            <label class="col-sm-2 control-label" for="fareType2"><span>*</span>运价类型:</label>
                                            <div class="col-sm-10">
                                                <input class="form-control" id="fareType2" name="fareType" type="text" />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="fareValidOn2"><span>*</span>运价有效期起:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="fareValidOn2" name="fareValidOn" type="text"  readonly/>
                                            </div>
                                            <label class="col-sm-2 control-label" for="fareValidOff2"><span>*</span>运价有效期止:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="fareValidOff2" name="fareValidOff" type="text"  readonly/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="vehicleType2"><span>*</span>车辆类型:</label>
                                            <div class="col-sm-4">
                                                <input class="form-control" id="vehicleType2" name="vehicleType" type="text"/>
                                            </div>
                                            <label class="col-sm-2 control-label" for="valid2"><span>*</span>是否有效:</label>
                                            <div class="col-sm-4">
                                                <select class="form-control" id="valid2" name="valid" >
                                                    <option value="0">有效</option>
                                                    <option value="1">无效</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="fareTypeNote2"><span>*</span>运价类型说明:</label>
                                            <div class="col-sm-10">
                                                <textarea class="form-control" id="fareTypeNote2" name="fareTypeNote" rows="3"  placeholder="请输入运价类型说明"></textarea>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div></div>
                        </div>
                </form>
            </div>
            <div class="modal-footer" style="position:absolute; bottom:10px; right:40px;">
                <button type="button" id="updatebutton" class="btn btn-primary">
                    确认
                </button>
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>
    </div>
</div>
</div>

<#--对话框-->
<div class="modal fade" id="alertDelet" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    温馨提示！
                </h4>
            </div>
            <div class="modal-body" style="color:red;font-weight: bold;font-size: 16px;">
                <span style="margin-left: 150px;">您确认要删除吗？</span>
            </div>
            <div class="modal-footer" >
                <button type="button" class="btn btn-default" data-dismiss="modal">取消
                </button>
                <button type="button" id="deletOne" class="btn btn-primary">
                    确认
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade" id="alertReport" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    温馨提示:
                </h4>
            </div>
            <div class="modal-body" style="color:darkturquoise;font-weight: bold;font-size: 16px;">
                <span style="margin-left: 150px;color: dimgrey;font-size: larger;">您确认上报该条信息？</span>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消
                </button>
                <button type="button" id="reportbtn" class="btn btn-primary">
                    确认
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>





<div class="row margin-top area_container">
	<div class="col-xs-12">
	<div class="row margin-top area_container">		
				<#if FeeScale??>
					<#list FeeScale as feeScale>
					<form action="" class="form-horizontal" method="post">
						<input type="hidden" name="id" value="${feeScale.id}">
						<div class="col-md-12">
							<div class="panel panel-default" style='margin-left: 20px;margin-right: 20px'>
			  					<div class="panel-heading">
			  						<#if feeScale.upStatus??>
			  							<#if feeScale.upStatus == 1>
			  								<span style='color: #8c97b2;font-weight: bolder;'>【已上传】</span>
			  							<#else>
			  								<span style='color: red;font-weight: bolder;'>【未上传】</span>
			  							</#if>
			  						</#if>
                                    <span>运价类型：</span><span class="name_span">${feeScale.fareType?if_exists}</span>&nbsp;&nbsp;&nbsp;&nbsp;
	              					<span>有效期：<span class='startTime'>${feeScale.fareValidOn?if_exists}</span>&nbsp;&nbsp;至&nbsp;&nbsp;<span>${feeScale.fareValidOff?if_exists}</span></span>
	             				    <input type="text" value="${feeScale.fareType}" name="name" class="name_input" style="width:150px;display:none;" required/>
	              					<button type="button" data="${feeScale.id}"  class="deleteArea pull-right button button-pill button-flat-caution button-tiny deletFreight"><span class="glyphicon glyphicon-remove"></span>&nbsp;删除</button>
	             				    <button type="button" data="${feeScale.id}"  class="area-edit pull-right button button-pill button-flat-primary button-tiny updateFreight"><span class="glyphicon glyphicon-edit"></span>&nbsp;修改</button>
	              					<button type="button" data="${feeScale.id}"  class="area-save pull-right button button-pill button-flat button-tiny Report"><span class="glyphicon glyphicon-floppy-disk"></span>&nbsp;上报</button>
	         					 </div>
	         					 <div class="panel-body  time_panel_body">
	         						<span class="text-primary">收费说明：</span>
	        						<span class="memo_span">${feeScale.fareTypeNote?if_exists}</span>
	            				</div>	
	         				</div>
	         			</div>
	         		</form> 
					</#list>
					<ul class="pagination pull-right pagination-sm" style="margin-right: 40px; margin-top: 0px;">
               			<li><a>共 ${totalRows} 条数据</a></li>
           			</ul>
				</#if>
			</div>
	</div>
</div>
</@override>

<@override name="footer">
	<script type="text/javascript">
		window.daijia = {
			ctx:'${ctx}',
			userId:'<@shiro.principal property='id'/>'
		};
	</script>

	<script type="text/javascript">

//添加平台收费标准
//日期
$(document).ready(function(){

	$("input").click(function(){
		
		$(".glyphicon").html("");
		$(".prev").html("");
		
		
	});


    $("#fareValidOn").datetimepicker({ format: 'yyyy-mm-dd', language: 'zh-CN', minView: 'month', pickDate: true, pickTime: false, inputMask: false, autoclose: true , endDate:new Date()});
    $("#fareValidOn2").datetimepicker({ format: 'yyyy-mm-dd', language: 'zh-CN', minView: 'month', pickDate: true, pickTime: false, inputMask: false, autoclose: true , endDate:new Date()});
    $("#fareValidOff").datetimepicker({ format: 'yyyy-mm-dd', language: 'zh-CN', minView: 'month', pickDate: true, pickTime: false, inputMask: false, autoclose: true , startDate:new Date()});
    $("#fareValidOff2").datetimepicker({ format: 'yyyy-mm-dd', language: 'zh-CN', minView: 'month', pickDate: true, pickTime: false, inputMask: false, autoclose: true , startDate:new Date()});
    $("#morningPeakTimeOn").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#morningPeakTimeOff").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#eveningPeakTimeOn").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#eveningPeakTimeOff").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#otherPeakTimeOn").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#otherPeakTimeOff").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#nightTimeStart").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#nightTimeEnd").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday()) });
    $("#morningPeakTimeOn2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});
    $("#morningPeakTimeOff2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});
    $("#eveningPeakTimeOn2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});
    $("#eveningPeakTimeOff2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});
    $("#otherPeakTimeOn2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});
    $("#otherPeakTimeOff2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});
    $("#nightTimeStart2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});
    $("#nightTimeEnd2").datetimepicker({ format: 'hh:ii', language: 'zh-CN',startView:1, minView: 'hour', pickDate: true, pickTime: false, inputMask: false, autoclose: true,startDate:new Date(getToday())});


    //表单提交
    $("#formbutton").click(function(){
        if(!$("#fareType").val()){
            $.scojs_message("请填写运价类型", $.scojs_message.TYPE_ERROR);
            return false;
        }else{
        	if($("#fareType").val().length>30){
        		$.scojs_message("运价类型超长，限定30个字符", $.scojs_message.TYPE_ERROR);
            	return false;
        	}
        }if(!$("#fareValidOn").val()){
            $.scojs_message("请填写运价有效期起", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#fareValidOff").val()){
            $.scojs_message("请填写运价有效期止", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#vehicleType").val()){
            $.scojs_message("请填写车辆类型", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#fareTypeNote").val()){
            $.scojs_message("请填写运价类型说明", $.scojs_message.TYPE_ERROR);
            return false;
        }else{
        	if($("#fareTypeNote").val().length>200){
        		$.scojs_message("运价类型说明超长，限定200个字符", $.scojs_message.TYPE_ERROR);
            	return false;
        	}
        }if(!$("#startFare").val()){
            $.scojs_message("请填写起步价", $.scojs_message.TYPE_ERROR);
            return false;
         }if(!$("#startMinute").val()){
            $.scojs_message("请填写起步时长", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#startMile").val()){
            $.scojs_message("请填写起步里程", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#unitPricePerMile").val()){
            $.scojs_message("请填写计程单价", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#unitPricePerMinute").val()){
            $.scojs_message("请填写计时单价", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#lowSpeedPricePerMinute").val()){
            $.scojs_message("请填写低速计时加价", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#singleUnitPrice").val()){
            $.scojs_message("请填写单程加价单价", $.scojs_message.TYPE_ERROR);
            return false;
         }if(!$("#singlePriceStartMile").val()){
            $.scojs_message("请填写单程加价公里", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#morningPeakTimeOn").val()){
            $.scojs_message("请填写早高峰起时间", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#morningPeakTimeOff").val()){
            $.scojs_message("请填写早高峰止时间", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#eveningPeakTimeOn").val()){
            $.scojs_message("请填写晚高峰起时间", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#eveningPeakTimeOff").val()){
            $.scojs_message("请填写晚高峰止时间", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#otherPeakTimeOn").val()){
            $.scojs_message("请填写其他营运高峰时间起", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#otherPeakTimeOff").val()){
            $.scojs_message("请填写其他营运高峰时间止", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#peakUnitPrice").val()){
            $.scojs_message("请填写高峰单程加价单价", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#peakPriceStartMile").val()){
            $.scojs_message("请填写高峰单程加价公里", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#nightTimeStart").val()){
            $.scojs_message("请填写夜间起时间", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#nightTimeEnd").val()){
            $.scojs_message("请填写夜间止时间", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$('#nightPricePerMile').val()){
            $.scojs_message("请填写夜间公里单价", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#nightPricePerMinute").val()){
            $.scojs_message("请填写夜间时间单价", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#otherPrice").val()){
            $.scojs_message("请填写其它加价金额", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#minPrice").val()){
            $.scojs_message("请填写最低消费", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#extraCharge").val()){
            $.scojs_message("请填写附加费", $.scojs_message.TYPE_ERROR);
            return false;
        }if(!$("#callCharge").val()){
            $.scojs_message("请填写预约服务费", $.scojs_message.TYPE_ERROR);
            return false;
        }
        $.post("${ctx}/feeScale/save",$("#Yjxxfrom").serialize(),
                function(data){
                    if(data.success){
                        $.scojs_message(data.message, $.scojs_message.TYPE_OK);
                        setTimeout(function(){
                            window.location.reload(true);
                        }, 1000);
                    }else{
                        $.scojs_message(data.message, $.scojs_message.TYPE_ERROR);
                    }
                },'json');
    });
	
});

//修改数据查询
$(function(){
    $(".updateFreight").click(function() {
        $.ajax({
            type: "GET",
            url: "${ctx}/feeScale/findOne/"+$(this).attr("data"),
            data: null,
            dataType: "json",
            success: function(object) {
                $("#feeId").val(object.object.id);
                $("#startFare2").val(object.object.startFare);
                $("#startMile2").val(object.object.startMile);
                $("#startMinute2").val(object.object.startMinute);
                $("#unitPricePerMile2").val(object.object.unitPricePerMile);
                $("#unitPricePerMinute2").val(object.object.unitPricePerMinute);
                $("#morningPeakTimeOn2").val(object.object.morningPeakTimeOn);
                $("#morningPeakTimeOff2").val(object.object.morningPeakTimeOff);
                $("#eveningPeakTimeOn2").val(object.object.eveningPeakTimeOn);
                $("#eveningPeakTimeOff2").val(object.object.eveningPeakTimeOff);
                $("#otherPeakTimeOn2").val(object.object.otherPeakTimeOn);
                $("#otherPeakTimeOff2").val(object.object.otherPeakTimeOff);
                $("#nightTimeEnd2").val(object.object.nightTimeEnd);
                $("#nightTimeStart2").val(object.object.nightTimeStart);
                $("#singleUnitPrice2").val(object.object.singleUnitPrice);
                $("#peakPriceStartMile2").val(object.object.peakPriceStartMile);
                $("#lowSpeedPricePerMinute2").val(object.object.lowSpeedPricePerMinute);
                $("#nightPricePerMile2").val(object.object.nightPricePerMile);
                $("#nightPricePerMinute2").val(object.object.nightPricePerMinute);
                $("#callCharge2").val(object.object.callCharge);
                $("#extraCharge2").val(object.object.extraCharge);
                $("#otherPrice2").val(object.object.otherPrice);
                $("#fareType2").val(object.object.fareType);
                $("#fareTypeNote2").val(object.object.fareTypeNote);
                $("#peakUnitPrice2").val(object.object.peakUnitPrice);
                $("#vehicleType2").val(object.object.vehicleType);
                $("#minPrice2").val(object.object.minPrice);
//                $("#licence2").val(object.object.licence);
//                $("#adminCode2").val(object.object.adminCode);
                $("#singlePriceStartMile2").val(object.object.singlePriceStartMile);
                $("#fareValidOn2").val(object.FareValidOns);
                $("#fareValidOff2").val(object.FareValidOffs);
            }
            });
        $("#myModals").modal();
    });
});

 //点击删除
$(".deletFreight").click(function(){
    var data=$(this).attr("data");
    $("#alertDelet").modal();
    $("#deletOne").click(function(){
    $.ajax({
        type: "GET",
        url: "${ctx}/feeScale/delete/" +data,
        data:null,
        dataType: "json",
           success: function (result){
                   if (result.success) {
                       $.scojs_message(result.message, $.scojs_message.TYPE_OK);
                       setTimeout(function(){
                          window.location.reload(true);
                         }, 800);
                  }else{
                      $.scojs_message(result.message, $.scojs_message.TYPE_ERROR);
               }
          }
    });

    })

});

//点击修改
$("#updatebutton").click(function(){
    if(!$("#fareType2").val()){
        $.scojs_message("请填写运价类型", $.scojs_message.TYPE_ERROR);
        return false;
    }else{
    	if($("#fareType2").val().length>30){
    		$.scojs_message("运价类型超长，限定30个字符", $.scojs_message.TYPE_ERROR);
        	return false;
        }
    }if(!$("#fareValidOn2").val()){
        $.scojs_message("请填写运价有效期起", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#fareValidOff2").val()){
        $.scojs_message("请填写运价有效期止", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#vehicleType2").val()){
        $.scojs_message("请填写车辆类型", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#fareTypeNote2").val()){
        $.scojs_message("请填写运价类型说明", $.scojs_message.TYPE_ERROR);
        return false;
    }else{
    	if($("#fareTypeNote2").val().length>200){
    		$.scojs_message("运价类型说明，限定200个字符", $.scojs_message.TYPE_ERROR);
        	return false;
        }
    }if(!$("#startFare2").val()){
        $.scojs_message("请填写起步价", $.scojs_message.TYPE_ERROR);
        return false;
     }if(!$("#startMinute2").val()){
        $.scojs_message("请填写起步时长", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#startMile2").val()){
        $.scojs_message("请填写起步里程", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#unitPricePerMile2").val()){
        $.scojs_message("请填写计程单价", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#unitPricePerMinute2").val()){
        $.scojs_message("请填写计时单价", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#lowSpeedPricePerMinute2").val()){
        $.scojs_message("请填写低速计时加价", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#singleUnitPrice2").val()){
        $.scojs_message("请填写单程加价单价", $.scojs_message.TYPE_ERROR);
        return false;
     }if(!$("#singlePriceStartMile2").val()){
        $.scojs_message("请填写单程加价公里", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#morningPeakTimeOn2").val()){
        $.scojs_message("请填写早高峰起时间", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#morningPeakTimeOff2").val()){
        $.scojs_message("请填写早高峰止时间", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#eveningPeakTimeOn2").val()){
        $.scojs_message("请填写晚高峰起时间", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#eveningPeakTimeOff2").val()){
        $.scojs_message("请填写晚高峰止时间", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#otherPeakTimeOn2").val()){
        $.scojs_message("请填写其他营运高峰时间起", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#otherPeakTimeOff2").val()){
        $.scojs_message("请填写其他营运高峰时间止", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#peakUnitPrice2").val()){
        $.scojs_message("请填写高峰单程加价单价", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#peakPriceStartMile2").val()){
        $.scojs_message("请填写高峰单程加价公里", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#nightTimeStart2").val()){
        $.scojs_message("请填写夜间起时间", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#nightTimeEnd2").val()){
        $.scojs_message("请填写夜间止时间", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$('#nightPricePerMile2').val()){
        $.scojs_message("请填写夜间公里单价", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#nightPricePerMinute2").val()){
        $.scojs_message("请填写夜间时间单价", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#otherPrice2").val()){
        $.scojs_message("请填写其它加价金额", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#minPrice2").val()){
        $.scojs_message("请填写最低消费", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#extraCharge2").val()){
        $.scojs_message("请填写附加费", $.scojs_message.TYPE_ERROR);
        return false;
    }if(!$("#callCharge2").val()){
        $.scojs_message("请填写预约服务费", $.scojs_message.TYPE_ERROR);
        return false;
    }
    $.post("${ctx}/feeScale/update",$("#updateYjxxfrom").serialize(),
            function(data){
                if(data.success){
                    $.scojs_message("修改成功", $.scojs_message.TYPE_OK);
                    setTimeout(function(){
                        window.location.reload(true);
                    }, 1000);
                }else{
                    $.scojs_message(data.fail, $.scojs_message.TYPE_ERROR);
                }
            },'json');
})

//上报到监管平台
$(".Report").click(function(){
	var isUpPlatformInfo = ${isUpPlatformInfo?string('true', 'false')};
	if(isUpPlatformInfo){
		var datas=$(this).attr("data");
	    $("#alertReport").modal();
	    $("#reportbtn").click(function() {
	        $.post("${ctx}/feeScale/report/"+datas,null,function (data){
	            if (data){
	                $.scojs_message(data.message, $.scojs_message.TYPE_OK);
	                setTimeout(function () {
	                    window.location.reload(true);
	                }, 1000);
	            } else {
	                $.scojs_message(data.message, $.scojs_message.TYPE_ERROR);
	            }
	        },'json');
	    });
	}else{
		$.scojs_message("监管平台上传开关已关闭", $.scojs_message.TYPE_ERROR);
	}
});

function getToday(){
	var today = new Date();
	today.setHours(0);
	today.setMinutes(0);
	today.setSeconds(0);
	today.setMilliseconds(0);
	return today;
};

</script>
</@override>
<@extends name="../layout.ftl"/>